src/ostree/ot-builtin-remote.c \
src/ostree/ot-builtin-rev-parse.c \
src/ostree/ot-builtin-show.c \
- src/ostree/ot-builtin-trivial-httpd.c \
src/ostree/ot-builtin-write-refs.c \
src/ostree/ot-main.h \
src/ostree/ot-main.c \
ostree_LDADD = $(ostree_bin_shared_ldadd) $(OT_INTERNAL_GIO_UNIX_LIBS)
if USE_LIBSOUP
-ostree_SOURCES += src/ostree/ot-builtin-pull.c
+ostree_SOURCES += \
+ src/ostree/ot-builtin-pull.c \
+ src/ostree/ot-builtin-trivial-httpd.c \
+ $(NULL)
ostree_CFLAGS += $(OT_INTERNAL_SOUP_CFLAGS)
ostree_LDADD += $(OT_INTERNAL_SOUP_LIBS)
endif
out:
return ret;
}
+
+#ifndef HAVE_LIBSOUP
+gboolean
+ostree_repo_pull (OstreeRepo *repo,
+ const char *remote_name,
+ char **refs_to_fetch,
+ OstreeRepoPullFlags flags,
+ GCancellable *cancellable,
+ GError **error)
+{
+ g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
+ "This version of ostree was built without libsoup, and cannot fetch over HTTP");
+ return FALSE;
+}
+#endif
{ "ls", ostree_builtin_ls, 0 },
{ "refs", ostree_builtin_refs, 0 },
{ "prune", ostree_builtin_prune, 0 },
+#ifdef HAVE_LIBSOUP
{ "pull", ostree_builtin_pull, 0 },
+#endif
{ "pull-local", ostree_builtin_pull_local, 0 },
{ "remote", ostree_builtin_remote, 0 },
{ "rev-parse", ostree_builtin_rev_parse, 0 },
{ "show", ostree_builtin_show, 0 },
+#ifdef HAVE_LIBSOUP
{ "trivial-httpd", ostree_builtin_trivial_httpd, OSTREE_BUILTIN_FLAG_NO_REPO },
+#endif
{ "write-refs", ostree_builtin_write_refs, 0 },
{ NULL }
};